-- Copyright 2010 Benjamin Leppard

-- This file is part of Picasa Metadata Import Into Lightroom.

-- Picasa Metadata Import Into Lightroom is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.

-- Picasa Metadata Import Into Lightroom is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.

-- You should have received a copy of the GNU General Public License
-- along with Picasa Metadata Import Into Lightroom.  If not, see <http://www.gnu.org/licenses/>.

require "Global"

local LrHttp = import "LrHttp"

local sectionsForTopOfDialog = function( viewFactory, propertyTable )
return 
{
	-- Section Entry
	{
		title = "Picasa Metadata Import",
		synopsis = "Import Picasa Metadata",
		
		viewFactory:row
		{
			spacing = viewFactory:control_spacing(),
			viewFactory:static_text 
			{
				title = "Picasa Metadata Import:"
			}
		},
		viewFactory:row
		{
			viewFactory:static_text 
			{
				title = "This plugin will import Picasa Metadata from pictures that are or were part of a Picasa library. The metadata can be found in the 'Picasa Metadata' collection in the Metadata tab of the Library view. This metadata can be used for filtering. As an example, a view of all stared pictures can be created.",
				height_in_lines = -1,
				width_in_digits = 70
			}
		},
		viewFactory:row
		{
			viewFactory:static_text 
			{
				title = "For feedback, updates to this plugin or bug reports: "
			},
		},
		viewFactory:row
		{
			viewFactory:push_button 
			{
				title = Global.PluginInfoUrl,
				action = function()
					LrHttp.openUrlInBrowser(Global.PluginInfoUrl)
				end,
			},
		},
	
	
	}
}
end

local sectionsForBottomOfDialog = function( viewFactory, propertyTable )
return 
{
	-- Section Entry
	{
		title = "GPL",
		synopsis = "This software is covered by the GPL.",
		
		viewFactory:row
		{
			viewFactory:static_text 
			{
				title = 
[[Copyright (C) 2010  Benjamin Leppard

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.]],
				height_in_lines = -1,
				width_in_digits = 70
			}
		},
		viewFactory:row
		{
			viewFactory:static_text 
			{
				title = "For more information see: "
			},
			viewFactory:push_button 
			{
				title = "http://www.gnu.org/licenses/gpl.html",
				action = function()
					LrHttp.openUrlInBrowser(title)
				end,
			},
		},
	}
}
end


return
{
	sectionsForTopOfDialog = sectionsForTopOfDialog,
	sectionsForBottomOfDialog = sectionsForBottomOfDialog
}